<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;

class YjLog extends Model
{
    //
    public static function add_log($uid = '', $num = 0, $sign = '', $msg = '', $before = '',  $after = '', $type = 0, $status = 0, $low_level = '')
    {
        Log::info('添加日志开始');
        $log = new YjLog();
        $log->uid = $uid;
        $log->num = $num;
        $log->sign = $sign;
        $log->msg = $msg;
        $log->before = $before;
        $log->after = $after;
        $log->type = $type;
        $log->status = $status;
        $log->low_level = $low_level;
        $log->save();
        Log::info('添加日志开始结束');
    }
}
